package cn.jly.spring.annotation.ioc.log;

import org.slf4j.LoggerFactory;

import java.util.logging.Logger;

/**
 * @author lanyangji
 * @description 测试日志打印颜色
 * @date 2020/11/13 下午 7:29
 */
public class LoggerTest {
    public static void main(String[] args) {
        Logger logger = Logger.getLogger(LoggerTest.class.getName());
        logger.info("log info..");
        logger.warning("log warning..");
        logger.severe("log error..");

        System.out.println("-----------");

        org.slf4j.Logger slf4jLog = LoggerFactory.getLogger(LoggerTest.class.getSimpleName());
        slf4jLog.info("slf4j info..");
        slf4jLog.warn("slf4j warn..");
        slf4jLog.error("slf4j error..");
    }
}
